/*
 * GeoVISTA Center (Penn State, Dept. of Geography)
 * Copyright (c), 2003-2011,  Jin Chen and Alan M. MacEachren, GeoVISTA Center, Penn State University
 * All Rights Researved.
 *
 * This library is developed and distributed for free usage,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
 * You can redistribute and/or modify it under the terms of the
 * Simplified BSD License
 *
 *
 *
 *
 *
 *
 *
 *  
 * @Original Author: jin Chen
 * @date: Apr 7, 2004$
 * @version: 1.0
 */
package edu.psu.geovista.app.dataloader.v1.actions;

import edu.psu.geovista.app.dataloader.v1.DataLoaders;

import javax.swing.*;

public abstract class BasicAction extends AbstractAction{
    DataLoaders dataloader;
    WizardData wizardData;


    /*protected ProjectBuilder projBd;
    protected PcpDataLoader pcpload;
    protected TsDataLoader tsload;
    protected ProjectPane projp;*/
    //protected JDialog projectDialog;
    //protected JDialog pathDialog;
    protected BasicAction() {

    }

    public BasicAction(String name, DataLoaders dl) {
       super(name);
        this.dataloader = dl;
        this.wizardData =dataloader.getWizard();
        /*projBd=dl.getProjBd();
        pcpload=dl.getPcpload();
        tsload=dl.getTsload() ;
        projp=dl.getProjp();*/
       // ClassLoader cl=this.getClass().getClassLoader() ;
        //projectDialog=dl.getProjectDialog();
       // pathDialog=dl.getPathDialog();

    }

    public void setName(String name) {
        putValue(Action.NAME, name);
    }

    public void setDataloader(DataLoaders dataloader) {
        this.dataloader = dataloader;
        this.wizardData =dataloader.getWizard();
    }



}
